home *** CD-ROM | disk | FTP | other *** search
- //=--------------------------------------------------------------------------=
- // <<DEFOBJECTTRUNCNAME>>Obj.H
- //=--------------------------------------------------------------------------=
- // Copyright 1995 Microsoft Corporation. All Rights Reserved.
- //
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
- // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
- // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
- // PARTICULAR PURPOSE.
- //=--------------------------------------------------------------------------=
- //
- // the <<DEFOBJECTNAME>> object.
- //
- //
- #ifndef _<<DEFOBJECTNAMECAPS>>_H_
-
- #include "AutoObj.H"
- #include "<<DEFSERVERNAME>>Interfaces.H"
-
- class C<<DEFOBJECTNAME>> : public I<<DEFOBJECTNAME>>, public CAutomationObject, ISupportErrorInfo {
-
- public:
- // IUnknown methods
- //
- DECLARE_STANDARD_UNKNOWN();
-
- // IDispatch methods
- //
- DECLARE_STANDARD_DISPATCH();
-
- // ISupportErrorInfo methods
- //
- DECLARE_STANDARD_SUPPORTERRORINFO();
-
- C<<DEFOBJECTNAME>>(IUnknown *);
- virtual ~C<<DEFOBJECTNAME>>();
-
- // I<<DEFOBJECTNAME>> methods
- // TODO: copy over the interface methods for I<<DEFOBJECTNAME>> from
- // <<DEFSERVERNAME>>Interfaces.H here.
-
-
- // creation method
- //
- static IUnknown *Create(IUnknown *);
-
- protected:
- virtual HRESULT InternalQueryInterface(REFIID riid, void **ppvObjOut);
-
- private:
- // member variables that nobody else gets to look at.
- // TODO: add your member variables and private functions here.
-
- };
-
- // TODO: modify anything appropriate in this structure, such as the helpfile
- // name, the version number, etc.
- //
- DEFINE_AUTOMATIONOBJECT(<<DEFOBJECTNAME>>,
- &CLSID_<<DEFOBJECTNAME>>,
- "<<DEFOBJECTNAME>>",
- C<<DEFOBJECTNAME>>::Create,
- 1,
- &IID_I<<DEFOBJECTNAME>>,
- "<<DEFOBJECTNAME>>.Hlp");
-
-
- #define _<<DEFOBJECTNAMECAPS>>_H_
- #endif // _<<DEFOBJECTNAMECAPS>>_H_